package org.compression.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.model.auth.Magazine;
@Mapper
public interface MagazineMapper {
	int deleteByPrimaryKey(Integer id);

	int insert(Magazine record);

	int insertSelective(Magazine record);

	Magazine selectByPrimaryKey(Integer id);

	int updateByPrimaryKeySelective(Magazine record);

	int updateByPrimaryKey(Magazine record);

	public List<Magazine>  getMagazinePage(@Param("startIndex") long i,@Param("endIndex") long j);
	
	@Select("select count(1) from t_new_magazine")
	public long getTotal();
	    
}